package com.test.service;


import com.test.mapper.MapBoxVectorTileMapper;
import com.test.pojo.MapBoxVectorTileVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MvtService {

   @Autowired
    MapBoxVectorTileMapper mapBoxVectorTileMapper;

    public byte[] vectorTitle(Integer z, Integer x, Integer y,String Tname) {

        Tname = "gis_osm_roads_free_1";
        List<MapBoxVectorTileVO> lstRe = mapBoxVectorTileMapper.vectorTitle(z,x,y,Tname);
        System.out.println("获取完成");

        return lstRe.get(0).getTile();
    }

}